package com.wander.io;

import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;

public class ScannerExample {
    public static void main(String[] args) throws IOException {
        System.out.print("Please input a char:");
        Charset charset = Charset.forName("UTF-16");
        InputStream in = System.in;

        char c = (char)in.read();
        //从标准输入读入u一个字节的信息，并返回一盒字符型变量
        System.out.println("Receive char =" + c);
    }
}
